/**
 * Created by Administrator on 2017/4/19.
 */
class Person{
    name:string;
    age:number;
    tell(){
        return this.name+';'+this.age
    }
}
//继承
class student extends Person{
    school:string;
    tell(){
        return this.name+';'+this.age+';'+this.school
    }
}

//实例化
//var me =new student('Tokky',29,'XX'); //没有构造器
var me = new student();
console.log(me.tell())
me.name ='Tokky';
me.age = 29;
me.school ='XX';
console.log(me)
console.log(me.tell())

